package com.by.remote;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * 提供  你要调用 的服务消费方
 */
@FeignClient(value = "sc-goods")
public interface GoodsRemoteClient {
    /**
     * 更新库存
     * @param goodsId
     * @param num
     * @return
     */
    @GetMapping("/api/goods")
    String update(@RequestParam("goodsId") int goodsId, @RequestParam("num") int num);
}